package udp;

import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

public class UdpClient {

	public static void main(String[] args) throws Exception{
		byte[] buf = "Hello I am client!!!".getBytes();
		InetAddress address = InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 });
		DatagramPacket packet = new DatagramPacket(buf, 0, buf.length, address, 4445);
		DatagramSocket socket = new DatagramSocket();
		socket.send(packet);
		socket.close();
		
	}

}
